package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.biz.TrainPlanEmployeeTarget;

/**
 * 培训人员对旬服务接口
 * 
 * @author henry
 * 
 */
public interface TrainPlanEmployeeTargetService {
	/** 获取培训人员对象 */
	TrainPlanEmployeeTarget getTrainPlanEmployeeTarget(Long id);

	/**
	 * 根据培训内训计划获取培训人员对象列表
	 * 
	 * @param planId
	 * @param limit
	 * @param sorter
	 * @return
	 */
	LimitedList<TrainPlanEmployeeTarget> getTrainPlanEmployeeTargets(Long planId, Limit limit, Sorter sorter);
	
	/**
	 * 获取培训目录人数
	 * @param planId
	 * @return
	 */
	Long getTrainPlanEmployeeTargetNum(Long planId);

	/** 保存培训人员对象 */
	void save(TrainPlanEmployeeTarget employeeTarget);

	/** 删除培训人员对象根据计划编号 */
	void deleteTrainPlanEmployeeTargetByPlanId(Long planId);

	/**
	 * 删除培训人员对象
	 * 
	 * @param ids
	 */
	void deleteTrainPlanEmployeeTarget(String ids);

	/**
	 * 根据计划编号删除培训员工对象
	 * 
	 * @param ids
	 */
	void deleteTrainPlanEmployeeTargetByPlanIds(String ids);

}
